<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>v-for遍历数组</title>
		<script src="../vue.js"></script>
	</head>
	<body>
		<div id="app">
			<!-- 这两个 one() 和 two() 将执行按钮点击事件 -->
			<button @click="one($event), two($event)">
				点我
			</button>
		</div>
	</body>
	<script>
		//view model
		const app = {
			data() {},
			methods: {
				one(event) {
					alert(event)
				},
				two(event) {
					alert(event)
				}
			}
		}

		Vue.createApp(app).mount('#app')
	</script>
</html>
